package main

import (
	"fmt"
)

func main() {
	mySlice := []int{1, 2, 3, 4, 5}
	m3 := mySlice[0:3]
	m4 := mySlice[1:4]
	m5 := mySlice[2]

	fmt.Println(mySlice, m3, m4, m5)

	fmt.Println(len(mySlice))
	fmt.Println(len(m4))

	names := []string{"jerry", "tom", "luma", "john", "steve"}

	for k, v := range names {
		fmt.Println(k, v)
	}

	for _, v := range names {
		fmt.Println(v)
	}
}
